package app.oa.web.action.personal;

import app.oa.domain.Emp;
import app.oa.service.PersonalService;

import com.opensymphony.xwork2.ActionSupport;

public class LoginAction extends ActionSupport {
	/**
	 * serialVersionUID
	 */
	private static final long serialVersionUID = 1L;
	
	
	private PersonalService personalService;
	public void setPersonalService(PersonalService personalService) {
		this.personalService = personalService;
	}
	private Emp emp;
	@Override
	public String execute() throws Exception {
		emp = personalService.login(emp);
		return SUCCESS;
	}
	public Emp getEmp() {
		return emp;
	}
	public void setEmp(Emp emp) {
		this.emp = emp;
	}
	
}
